<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#name").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				costSummary : "required",
				marchandise : "required",
				number : "required",
				order : "required",
				unitPrice : "required",
				brand : "required",
				memo : "required"
			}
		});
	});
</script>
<form id="inputForm" class="well form-inline" action="${ctx}/adoms/orderMarchandiseDetail/save" method="post">
	<input type="hidden" name="id" value="${orderMarchandiseDetail.id}" />
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<i class="icon-flag"></i>
			<strong>订单商品表单</strong>
		</thead>
		<tr>
			<td class="span2">商品总价:</td>
			<td>
				<input id="costSummary" name="costSummary" type="text" value="${orderMarchandiseDetail.costSummary}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>订购商品:</td>
			<td>
				<input id="marchandise" name="marchandise" type="text" value="${orderMarchandiseDetail.marchandise}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>商品数量:</td>
			<td>
				<input id="number" name="number" type="text" value="${orderMarchandiseDetail.number}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>所属订单:</td>
			<td>
				<input id="order" name="order" type="text" value="${orderMarchandiseDetail.order}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>商品单价:</td>
			<td>
				<input id="unitPrice" name="unitPrice" type="text" value="${orderMarchandiseDetail.unitPrice}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>品牌:</td>
			<td>
				<input id="brand" name="brand" type="text" value="${orderMarchandiseDetail.brand}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>备注:</td>
			<td>
				<textarea id="memo" name="memo" rows="4" class="span6">${orderMarchandiseDetail.memo}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input class="btn" type="submit" value="提交" />
				&nbsp;
				<input class="btn" type="button" value="返回" back="back" />
			</td>
		</tr>
	</table>
</form>
